home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
126-150
/
disk_147
/
sys
/
osk
/
osk.zoo
/
sysdef.h
< prev
next >
Wrap
C/C++ Source or Header
|
1988-07-25
|
2KB
|
54 lines
/*
* Os9/68K specific definitions for micrognuemacs
*/
#include <stdio.h>
#define KBLOCK 1024 /* Kill grow. */
#define GOOD 0 /* Good exit status. */
#define NO_VOID_TYPE /* void not supported yet */
#define PC PC_ /* compiler can't handle variable */
#define SR SR_ /* called PC or SR */
#define NO_RESIZE /* terminal doesn't change size */
typedef int RSIZE; /* Type for file/region sizes */
typedef short KCHAR; /* Type for keyboard character */
#define MAXPATH 128 /* reasonable maximum path length */
/* malloc works best with a multiple of 8 bytes */
#define MALLOCROUND(v) ((v) += 7, (v) &= ~7)
/*
* Macros used by the buffer name making code.
* Start at the end of the file name, scan to the left
* until BDC1 (or BDC2, if defined) is reached. The buffer
* name starts just to the right of that location, and
* stops at end of string (or at the next BDC3 character,
* if defined). BDC2 and BDC3 are mainly for VMS.
*/
#define BDC1 '/' /* Buffer names. */
/*
* Needed for lots of small mallocs on os9/68k. _memmins should be
* (maximum malloced memory)/16. (defalt _memmins is 4096)
* Note that malloc may now fail if there isn't _memmins bytes
* contiguous free memory. _memins could be reduced and the malloc
* tried again. (Not currently implemented.)
*/
#ifdef MAXMEM
# define SYSINIT {extern int _memmins; _memmins=MAXMEM*64; }
#else
# define SYSINIT {extern int _memmins; _memmins=32768; }
#endif
/* see "caveates" in the osk C manual on _strass */
#define bcopy(from,to,len) _strass(to,from,len)
/* see comments on these in display.c. OSK can't stand the wasted memory
* without making the score array "remote", which generates lousy code.
* Besides, I don't have an extra 100kb of memory for the score array.
*/
#define XCHAR char
#define XSHORT short
char *getenv();
#define gettermtype() getenv("TERM") /* get terminal type */